deploy: Rework kernel arguments, add --karg-append to "admin deploy"
authorColin Walters <walters@verbum.org>
Thu, 16 Jan 2014 18:04:00 +0000 (13:04 -0500)
committerColin Walters <walters@verbum.org>
Thu, 16 Jan 2014 20:07:55 +0000 (15:07 -0500)
commitb2d0ba7ac1e742586eeb3018d88e01dc436d5b4d
tree01abcbdef606c1587e9a3ade713a08511debdd89
parent7db2031fa06621d0564f859776e072130d49a867
deploy: Rework kernel arguments, add --karg-append to "admin deploy"

The "ordered hash" code was really just for kernel arguments.  And it
turns out it needs to be a multihash (for e.g. multiple console=
arguments).

So turn the OstreeOrderedHash into OstreeKernelArgs, and move the bits
to split key=value and such into there.

Now we're not making this public API yet - the public OstreeSysroot
just takes char **kargs.  To facilitate code reuse between ostree/ and
libostree/, make it a noinst libtool library.  It'll be duplicated in
the binary and library, but that's OK for now.  We can investigate
making OstreeKernelArgs public later.

https://bugzilla.gnome.org/show_bug.cgi?id=721136
13 files changed:
Makefile-libostree.am
Makefile-ostree.am
src/libostree/ostree-kernel-args.c [new file with mode: 0644]
src/libostree/ostree-kernel-args.h [new file with mode: 0644]
src/libostree/ostree-ordered-hash.c [deleted file]
src/libostree/ostree-ordered-hash.h [deleted file]
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/libostree/ostree-sysroot.h
src/ostree/ot-admin-builtin-deploy.c
src/ostree/ot-admin-builtin-upgrade.c
tests/test-admin-deploy-karg.sh